package com.flyco.modules.sms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.flyco.modules.sms.entity.SmsGiftStoreRelation;
import com.flyco.modules.sms.mapper.SmsGiftStoreRelationMapper;
import com.flyco.modules.sms.service.ISmsGiftStoreRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 赠品和经销商关系表
 */
@Service
public class SmsGiftStoreRelationService extends ServiceImpl<SmsGiftStoreRelationMapper, SmsGiftStoreRelation> implements ISmsGiftStoreRelationService {

    @Autowired
    private SmsGiftStoreRelationMapper giftStoreRelationMapper;

    @Override
    public Integer insertStoreRelationForGroupId(List<Long> storeGroupIds, Long giftId, Integer brandCategory) {

        return giftStoreRelationMapper.insertStoreRelationForGroupId(storeGroupIds, giftId, brandCategory);

    }

}
